using Godot;

namespace PlayerState
{
public partial class Dead : Node,StateNode
{
    public Player player;

    public override void _Ready()
    {
        player = GetNode<Player>("/root/Main/Player");
    }

    public void OnEnter()
    {
        player.GetNode<AnimatedSprite2D>("AnimaPlayer").Animation="dead";

        GetNode<AudioStreamPlayer2D>("Music").Play();
    }

    public void OnExit()
    {
        //GameOver
    }

    public void OnUpdate(float delta)
    {   
        OnExit();
    }
}
}